public class Pet {
    private String name, kind, weight;

    public Pet() {
        System.out.println("pet的无参构造方法");
    }

    public Pet(String name, String kind, String weight) {
        this.name = name;
        this.kind = kind;
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public void eat() {
        System.out.println(kind + "会吃");
    }

    public void sleep() {
        System.out.println(kind + "会睡");
    }

    public void introduce() {
        System.out.println("我叫" + name + ",体重为" + weight);
        eat();
        sleep();
    }
}